<!DOCTYPE html>
<html>
<head>
<title>使用记录</title>
#include("../include/common.html")
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>使用记录</h5>
            </div>
            <form id="listForm" action="useList" method="get">
            	<input type="hidden" name="couponId" id="couponId" value="#(couponId)">
                <div class="ibox-content">
                    <!-- 搜索 start -->
                    <!-- 搜索 end -->
                    <!-- 列表 start -->
                    <div class="form-horizontal clear">
                        <div class="form-group">
                            <div class="col-sm-8">
                            	<a href="#(base)/admin/coupon/list" class="btn btn-primary"><i class="fa fa-arrow-left"></i> 返回</a>
                                <a href="javascript:;" class="btn btn-primary" id="refreshButton"><i class="fa fa-refresh"></i> 刷新</a>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-bordered" id="listTable">
                                <thead>
                                    <tr>
                                        <th width="40" class="text-center"><input type="checkbox" id="selectAll" /></th>
                                        <th>ID</th>
                                        <th>编号</th>
                                        <th>金额</th>
                                        <th>会员</th>
                                        <th>收货人</th>
                                        <th>发件人</th>
                                        <th>支付方式</th>
                                        <th>配送方式</th>
                                        <th>状态</th>
                                        <th>附言</th>
                                        <th>创建日期</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    #for(order : page.list)
                                    <tr>
                                        <td class="text-center"><input type="checkbox" name="ids" value="#(order.id)" /></td>
                                        <td>#(order.id)</td>
                                        <td>#(order.sn)</td>
                                        <td>#(order.amount)</td>
                                        <td>
                                        	ID:#(order.member.id)<br>
                                        	昵称:#(order.member.nickname??"")<br>
                                        	手机号码:#(order.member.mobile??"")<br>
                                        </td>
                                        <td>
                                        	收货人:#(order.consignee)<br>
                                        	手机号码:#(order.phone)<br>
                                        	地址:#(order.province);#(order.city);#(order.district);#(order.address)<br>
                                       	</td>
                                       	<td>
                                        	发件人:#(order.senderName)<br>
                                        	手机号码:#(order.senderPhone)<br>
                                        	国家:#(order.senderCountry)<br>
                                        	地址:#(order.senderAddress)<br>
                                       	</td>
                                        <td>#if(order.paymentMethod??)#(order.paymentMethodName)#else - #end</td>
                                        <td>#(order.shippingMethod)</td>
                                        <td>
                                            #(order.statusName)
                                        </td>
                                        <td>#(order.memo)</td>
                                        <td>#date(order.createDate,"yyyy-MM-dd")</td>
                                    </tr>
                                    #end
                                </tbody>
               				</table>
           				</div>
                        <div class="text-center">
                            #pagination(pageNumber = page.pageNumber,totalPages = page.totalPage,pattern = "")
                                #include("../include/pagination.html")
                            #end
                        </div>
                    </div>
                    <!-- 列表 end -->
                </div>
            </form>
        </div>
    </div>
</body>
</html>